@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  padding: 0;
  margin: 0;
}

nav {
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 1;
  font-family: "Roboto", sans-serif;
}

nav .logo {
  display: flex;
  align-items: center;
}
nav .logo img {
  height: 80px;
  width: auto;
  margin-right: 10px;
}
nav .logo h1 {
  font-size: 1.1rem;
  background: linear-gradient(to right, #b927fc 0%, #2c64fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin-left: 1.5rem;
}
nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #f5f5f5;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 1px;
  background-color: #1f1f1f;
  display: block;
  margin: 7px auto;
  transition: all 0.3s ease-in-out;
}
.hamburger-active {
  transition: all 0.3s ease-in-out;
  transition-delay: 0.6s;
  transform: rotate(45deg);
}

.hamburger-active .line:nth-child(2) {
  width: 0px;
}

.hamburger-active .line:nth-child(1),
.hamburger-active .line:nth-child(3) {
  transition-delay: 0.3s;
}

.hamburger-active .line:nth-child(1) {
  transform: translateY(12px);
}

.hamburger-active .line:nth-child(3) {
  transform: translateY(-5px) rotate(90deg);
}

.menubar {
  position: absolute;
  top: 0;
  left: -60%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 60%;
  height: 100vh;
  padding: 20% 0;
  background: rgba(255, 255, 255);
  transition: all 0.5s ease-in;
  z-index: 3;
}
.active {
  left: 0;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.menubar ul {
  padding: 0;
  list-style: none;
}
.menubar ul li {
  margin-bottom: 32px;
}

.menubar ul li a {
  text-decoration: none;
  color: #000;
  font-size: 95%;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: 5px;
}

.menubar ul li a:hover {
  background-color: #f5f5f5;
}

/* Icono del carrito */
.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-icon i {
  font-size: 24px;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 5px 10px;
  font-size: 12px;
}

/******************************** Sidebar del carrito */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #333;
  color: white;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.checkout-btn {
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.checkout-btn:hover {
  background-color: #218838;
}

/* Overlay para el carrito */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.overlay.active {
  display: block;
}

/********************************* section_header */
.section_header {
  height: 90vh;
  position: relative;
  overflow: hidden;
}
.section_header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section_header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Color negro con 50% de opacidad */
  z-index: 1; /* Asegura que la capa esté encima de la imagen */
}
.text_header {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: white;
  text-align: center;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para mejorar la legibilidad */
  width: 90%; /* Asegura que el texto no se salga de la pantalla en móviles */
  z-index: 2;
  font-family: "Inter", sans-serif;
}
.text_header h2 {
  font-size: 85px;
  font-weight: 700;
  letter-spacing: -3.2px;
  margin: 0px 0px 20px;
}
.text_header p {
  font-size: 20px;
  font-weight: 300;
  line-height: 10px;
}
.carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.wrap {
  display: flex;
  width: max-content; /* Ajusta el ancho al contenido */
  animation: slide 14s linear infinite;
}

.wrap img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  margin-right: 20px; /* Espacio entre imágenes */
}

/* Duplica el contenido para el efecto infinito */
.wrap::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: inherit;
}

/*******************************SECTION CATEGORIAS CARRUSEL*/
.swiper {
  width: 100%;
  height: 50%;
  padding: 20px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card_catg_index {
  padding: 10px;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content_card {
  width: 365px;
  height: 470px;
  background-color: #f4f4f5;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
    rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
  padding-top: 12px;
  padding-bottom: 15px;
}
.title_card {
  padding-left: 16px;
}
.title_card h3 {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  position: relative;
}
.title_card span {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  position: relative;
  right: 105px;
}
.btn_1 a {
  background-color: #fefefe;
  border: none; /* Elimina el borde */
  outline: none; /* Elimina el contorno al enfocar */
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 12px;
  position: relative;
  right: 90px;
}

.content_card .img_card {
  position: relative;
  left: 50px;
  width: 70%;
  height: 200px;
  margin-bottom: 10px;
}

.btn_1 {
  padding-left: 55px;
}

/***************************SECTION PRODUCTO DE CALIDAD*/
.content_producto_calidad {
  display: flex;
  justify-content: center;
  position: relative;
  top: 16px;
}
.content_producto_calidad_view {
  width: 1440px;
  height: 640px;
  background-color: #000000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.descripcion_mac {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    #ffffff,
    #797979
  ); /* Degradado de blanco a gris */
  -webkit-background-clip: text; /* Aplica el degradado solo al texto */
  -webkit-text-fill-color: transparent; /* Hace el texto transparente para mostrar el degradado */
  text-align: center;
  margin: 0;
  padding: 20px; /* Degradado de izquierda a derecha */
  -webkit-background-clip: text; /* Aplica el degradado solo al texto */
  -webkit-text-fill-color: transparent; /* Hace el texto transparente para mostrar el degradado */
  text-align: center;
  margin: 0;
  padding: 20px;
}
.descripcion_mac p {
  font-size: 14px;
}
.descripcion_mac a {
  font-size: 16px;
  border: 2px solid #ffffff;
  padding: 10px; /* Espacio interno */
  border-radius: 8px;
  text-decoration: none;
}

/*DIV FIJO*/
#divFijo {
  position: fixed;
  top: 500px;
  left: 40px;
  height: 340px;
  background-color: white;
  padding: 10px 20px;
  border-radius: 25px;
  transition: opacity 0.3s ease; /* Transición suave para desaparecer */
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%); /* Desplaza solo la mitad del contenido */
  }
  0% {
    transform: translateX(160%);
  }
}

.carousel:hover .wrap {
  animation-play-state: paused;
}
/***********************************contente recien agregados*/
.content_agregardos_recientemente {
  display: grid;
  margin-top: 50px;
  grid-template-rows: 15% 85%;
  height: 100vh; /* Ocupar toda la altura de la pantalla */
  gap: 10px; /* Espacio entre las filas */
  background: #ddd;
  border-radius: 15px;
}
.column_head {
  display: flex;
}

.title_add {
  padding: 10px;
  width: 25%;
}
.title_add h3 {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 40px;
  font-weight: bold;
}
.enlaces_products {
  width: 75%;
}
.enlaces_products ul {
  list-style: none;
  display: flex;
  gap: 10px;
  font-size: 22px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  top: 20px;
}
.enlaces_products ul li a {
  text-decoration: none;
  color: black;
}
.enlaces_products ul li:last-child a {
  font-weight: bold;
  font-size: 18px;
}
.swiper {
  height: 80%;
  width: auto;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
}
.bg-colors {
  background: #ddd;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content_card_add {
  width: 465px;
  height: 600px;
  background-color: white;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
    rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
  padding-top: 12px;
  padding-bottom: 15px;
}
.content_card_add .title_card {
  position: relative; /* Mantenemos relative si es necesario para otros elementos */
  display: flex; /* Usamos Flexbox para centrar */
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */
  text-align: center; /* Asegura que el texto esté centrado */
  padding: 10px; /* Añade un poco de espacio interno */
  width: 100%; /* Ocupa todo el ancho disponible */
  box-sizing: border-box; /* Incluye el padding en el ancho */
  flex-direction: column;
  box-sizing: border-box;
}
.content_card_add .title_card h3 {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  position: relative;
  left: 30px;
}
.content_card_add .title_card span {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  position: relative;
  left: 10px;
}
.content_card_add button {
  background-color: #fefefe;
  border: none; /* Elimina el borde */
  outline: none; /* Elimina el contorno al enfocar */
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 12px;
  position: relative;
  right: 90px;
}

/* .content_card_add .img_card {
  position: relative;
  left: 50px;
  width: 70%;
  margin-top: 10px;
  margin-bottom: 25px;
} */

.btn_1 {
  position: relative;
  top: 70px;
  padding-left: 55px;
}

.image-carousel {
  position: relative;
  width: 100%;
  max-width: 500px; /* Ajusta el ancho máximo */
  margin: 20px auto; /* Espacio entre contenedores */
  overflow: hidden;
}

.image-container {
  position: relative;
  width: 100%;
  height: 300px; /* Ajusta la altura */
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.image-container img.active {
  opacity: 1;
}

.add-button {
  position: relative;
  top: 10px;
  left: 160px;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 10; /* Asegura que el botón esté encima de las imágenes */
}

.image-carousel:hover .add-button {
  opacity: 1; /* Muestra el botón al hacer hover */
}

/*****************PROCESO DE PRESTAMO*/

.section_proceso_pedido {
  height: 50vh;
  background-color: #2c2c2c;
  border-radius: 15px;
  margin-top: 5px;
  margin-bottom: 15px;
}

/*****************RESPONSIVIDAD*/

@media screen and (max-width: 1100px) {
  .text_header {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 70%);
    color: white;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para mejorar la legibilidad */
    width: 90%; /* Asegura que el texto no se salga de la pantalla en móviles */
    z-index: 2;
    font-family: "Inter", sans-serif;
  }
  .text_header h2 {
    font-size: 65px;
    font-weight: 700;
    letter-spacing: -3.2px;
    margin: 0px 0px 20px;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
  }
  .text_header p {
    font-size: 16px;
    font-weight: 300;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
  }
  .content_producto_calidad_view {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Pila en una sola columna en pantallas pequeñas */
    text-align: center;
    height: auto;
  }
  .img_mac img {
    max-width: 80%;
  }
  /*CARDS ADD RECIENTES*/
  .swiper {
    height: auto;
  }

  .content_card_add {
    width: 100%;
    padding: 10px;
  }

  .content_card_add .title_card h3 {
    font-size: 20px;
  }

  .content_card_add .title_card span {
    font-size: 12px;
  }

  .btn_1 {
    top: 10px;
  }
}

@media screen and (max-width: 790px) {
  .hamburger {
    display: block;
  }
  nav ul {
    display: none;
  }
  .text_header {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 50%);
    color: white;
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra para mejorar la legibilidad */
    width: 90%; /* Asegura que el texto no se salga de la pantalla en móviles */
    z-index: 2;
    font-family: "Inter", sans-serif;
  }
  .text_header h2 {
    font-size: 65px;
    font-weight: 700;
    letter-spacing: -3.2px;
    margin: 0px 0px 20px;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
  }
  .text_header p {
    font-size: 16px;
    font-weight: 300;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
  }
  .carousel:hover .wrap {
    animation-play-state: running;
  }
  .content_producto_calidad_view {
    display: grid;
    grid-template-columns: 1fr; /* Pila en una sola columna en pantallas pequeñas */
    text-align: center;
    height: auto;
  }

  .descripcion_mac {
    align-items: center;
  }

  .img_mac img {
    max-width: 80%;
  }
  #divFijo {
    display: none;
  }
  /*SECTION ADD RECIENTES*/
  .content_agregardos_recientemente {
    height: auto;
  }

  .column_head {
    display: flex;
    flex-direction: column;
    height: max-content;
  }
  .title_add {
    padding: 10px;
    width: auto;
    height: auto;
  }
  .title_add h3 {
    font-size: 28px;
    font-weight: 500;
  }
  .enlaces_products {
    width: auto;
    height: auto;
  }
  .enlaces_products ul {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    padding: 8px;
  }
  .enlaces_products ul li a {
    text-decoration: none;
    color: black;
  }

  /*CARDS ADD RECIENTES*/
  .swiper_cards {
    height: auto;
    margin-top: 100px;
    background-color: #9e040421;
  }
  .swiper-slide {
    width: auto;
    height: min-content;
    margin-top: 100px;
  }

  .content_card_add {
    width: 100%;
    padding: 10px;
  }

  .content_card_add .title_card h3 {
    font-size: 20px;
  }

  .content_card_add .title_card span {
    font-size: 11px;
  }
  .section_proceso_pedido {
    height: auto;
    padding-bottom: 15px;
    background: linear-gradient(to bottom, #2c2c2c 50%, #ffffff 50%);
  }
}
